import SwiftUI
import Observation

enum PopupContentType {
    case message
    case progress
}

@Observable final class PopupModel {
    
    var showPopupView: Bool = false
    
    private(set) var content: String = ""
    private(set) var contentTyep: PopupContentType = .message

    func show(content: String) {
        self.content = content
        contentTyep = .message
        showPopupView = true
    }
    
    func showProgress() {
        contentTyep = .progress
        showPopupView = true
    }
    
    func hide() {
        showPopupView = false
    }
    
}
